<script setup lang="ts">
import Prism from "prismjs";
import "prismjs/themes/prism-okaidia.css";
defineProps({
  data: {
    type: Object,
    default: () => {}
  }
});
onMounted(() => {
  Prism.highlightAll();
});
</script>

<template>
  <el-scrollbar max-height="calc(100vh - 80px)">
    <pre
      style="margin: 0"
    ><code class="language-js line-numbers">{{ data.log }}</code></pre>
  </el-scrollbar>
</template>
